package com.bobo.service.topic;

import com.bobo.dto.Page;
import com.bobo.dto.VCTopic;
import com.bobo.model.Topic;

import java.util.List;

/**
 * Created by bobo on 16-10-28.
 */
public interface ITopicService {

    public Integer create(Topic topic);

    public boolean delete(Integer id);

    public boolean update(Topic topic);

    public Topic getById(Integer id);

    public Page<Topic> getLike(Integer current, Integer pageSize, String like);

    public Page<VCTopic> getTopicsByUserId(Integer userId,Integer current, Integer pageSize);

    public Page<Topic> getTopicsByCategoryId(Integer categoryId,Integer current, Integer pageSize, Integer status);

    public Page<Topic> getTopics(Integer current, Integer pageSize, Integer status);

    public Page<VCTopic> getVCTopics(Integer current, Integer pageSize, String sortName, String sort, String like);

    public List<Topic> getTops(Integer top);

}
